package org.demo.base.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 未登录异常
 * 自定义异常的code，才能够被识别出来
 * @author tomdog
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class NotLoginException extends CustomException {

    private Integer code = 503;

    public NotLoginException(String msg) {
        super(msg);
    }

    public NotLoginException() {
        super("未登录");
    }
}
